package com.tensquare.recruit.service;

import com.tensquare.recruit.dao.RecruitDao;
import com.tensquare.recruit.pojo.Recruit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Feng.Wang
 * @Company: Zelin.ShenZhen
 * @Description:
 * @Date: Create in 2019/3/23 16:04
 */
@Service
public class RecruitService {
    @Autowired
    private RecruitDao recruitDao;
    public List<Recruit> findTop4ByStateOrderByCreatetimeDesc(String state){
        return recruitDao.findTop4ByStateOrderByCreatetimeDesc(state);
    }
    public  List<Recruit> findTop12ByStateNotOrderByCreatetimeDesc(String state){
        return recruitDao.findTop12ByStateNotOrderByCreatetimeDesc(state);
    }
}
